IdeaBlade.Validation Assembly > IdeaBlade.Validation Namespace > StringLengthVerifier Class > StringLengthVerifier Constructor : StringLengthVerifier Constructor(Type,String,Boolean,Nullable<Int32>,Nullable<Int32>,Nullable<Boolean>) |
'Declaration
Public Function New( _ ByVal type As Type, _ ByVal propertyName As String, _ ByVal isRequired As Boolean, _ ByVal minLength As Nullable(Of Integer), _ ByVal maxLength As Nullable(Of Integer), _ Optional ByVal treatEmptyStringAsNull As Nullable(Of Boolean) _ )
'Usage
Dim type As Type Dim propertyName As String Dim isRequired As Boolean Dim minLength As Nullable(Of Integer) Dim maxLength As Nullable(Of Integer) Dim treatEmptyStringAsNull As Nullable(Of Boolean) Dim instance As New StringLengthVerifier(type, propertyName, isRequired, minLength, maxLength, treatEmptyStringAsNull)
public StringLengthVerifier( Type type, string propertyName, bool isRequired, Nullable<int> minLength, Nullable<int> maxLength, Nullable<bool> treatEmptyStringAsNull )
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2